@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>退货单号: <b id="returnSaleOrderNumber">${returnSaleOrderNumber}</b></h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-4">
                                <#SelectCon id="customerId" name="选择下游客户" />
                            </div>
                            <div class="col-sm-2">
                                <#NameCon id="amountPaid" name="实退金额"/>
                            </div>
                            <div class="col-sm-4">
                                <#TimeCon id="createDate" name="退货日期" isTime="true" />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4">
                                <#NameCon id="remarks" name="备注" />
                            </div>
                            <div class="col-sm-2">
                                <#SelectCon id="payState" name="是否支付"/>
                            </div>
                            <div class="col-sm-2">
                                <#button name="保存" icon="fa-plus" clickFun="CustomerReturn.save()"/>
                                <#button name="清除" icon="fa-plus" clickFun="CustomerReturn.collectData()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="PurchaseTableToolbar" role="group">
                            @if(shiro.hasPermission("/customerReturn/add")){
                            <#button name="添加商品" icon="fa-plus" clickFun="CustomerReturn.openAddCustomerReturn()"/>
                            @}
                            @if(shiro.hasPermission("/customerReturn/delete")){
                            <#button name="删除商品" icon="fa-remove" clickFun="CustomerReturn.delete()" space="true"/>
                            @}
                        </div>
                        <#table id="CustomerReturnTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/salesmanagement/customerReturn/customerReturn.js"></script>
<script type="text/javascript">
    laydate.render({
        elem: '#createDate',
        type: 'datetime'
    });
</script>
@}
